package Exercises;

import java.util.Scanner;

public class Task6 {

	public static void main(String[] args) {
		Scanner sc = new Scanner (System.in);
			System.out.println("Please add M and N numbers: ");
	int m = sc.nextInt();
	int n = sc.nextInt();
	String s = " All the numbers in the interval M and N are: " ;
	
	
	for(int i = m; i<=n; i++)
	{
		s +=i +", ";				
	}
		
		System.out.println(s);
		
	}

}
